package com.xxx.file;

import java.io.*;

/**
 * @version v1.0
 * @Description
 * @Author admin
 * @date 2021/7/22  14:33
 * @Copyright
 */
public class BufferedReaderDome {
    public static void main(String[] args) {
        try (
                FileWriter writer = new FileWriter("a.txt");
                BufferedWriter writer1 = new BufferedWriter(writer);

        ) {

            writer1.write("abc");
            writer1.newLine();
            writer1.write("def");
//            writer1.close();
        } catch (IOException e) {
            e.printStackTrace();
        }


    }
}
